import ReactDom from 'react-dom/client'
import { store } from './store';
import App from './App';
import { Decrementaction, Incrementaction, Nameaction } from './store/createActors';
import { Provider } from 'react-redux';
// console.log(store.getState());
// store.subscribe(() => {
//     console.log(" 订阅发生变化\n");
//     console.log(store.getState());
// })
// store.dispatch(Nameaction("xixi"));
// store.dispatch(Nameaction("james"));
// store.dispatch(Nameaction("curry"));
// store.dispatch(Incrementaction(10))
const root = ReactDom.createRoot(document.querySelector("#root"));
root.render(
    <div>
        <Provider store={store}>
            <App></App>
        </Provider>
    </div>)
